package singleton.demo01;

/**
 *  饿汉式(静态常量)
 */
public class Singleton01 {

    private static final Singleton01 instance = new Singleton01();

    private Singleton01(){};

    public static Singleton01 getInstance(){
        return instance;
    }
}
